Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

188
Visualizações
Pop up new text box after click on "Others" from dropdown and database captured that new data

I found a way how to pop up a new text box after click on "Others" from the dropdown. But the problem here is database capture "Other" instead of the new data that I key in. For example I key in "Policeman" but it captured "Other" in my database.

    <head>  
    <script type="text/javascript">
    function showfield(name){
    if(name=='Other')document.getElementById('div1').innerHTML='Other: <input type="text" 
    name="other" />';
    else document.getElementById('div1').innerHTML='';
   }

 </script> 
 </head>
    <form action="https://apps3.xendsys.com/emv3/index.php/lists/xl080bdvq5cc8/subscribe" method="post">
   <div class="box box-primary borderless">
  <div class="box-header">
  <h3 class="box-title">Website Subscribers</h3>
  </div>
   <select name="OCCUPATION" id="OCCUPATION" 
   onchange="showfield(this.options[this.selectedIndex].value)">
      <option selected="selected">Please select ...</option>
      <option value="Student">Student</option>
      <option value="Educator">Educator</option>
      <option value="Designer">Designer</option>
      <option value="Other">Other</option>
   </select>
   <div id="div1"></div>
  <div class="box-footer">
 <div class="pull-right"><input type="submit" class="btn btn-primary btn-flat" name="yt0" value="Subscribe"/></div>

  <div class="clearfix"> </div>
  </div>
  </div>
    </form>

What should I change ya?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda